//
// Created by macbookpro on 2024/4/12.
//


#ifndef TESTDESIGNPATTERNSSTRATEGY_FLYWITHWINGS_H
#define TESTDESIGNPATTERNSSTRATEGY_FLYWITHWINGS_H

#include "FlyBehavior.h"
#include <iostream>

//公有继承：基类的公有成员和保护成员的访问属性在派生类中不变
class FlyWithWings: public FlyBehavior{
public:
    void fly() const override{
        std::cout<<"I'm flying"<<std::endl;
    }
};
#endif //TESTDESIGNPATTERNSSTRATEGY_FLYWITHWINGS_H
